package com.etone.smartAudit.dto.dataMeta;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020/11/16
 * @description: 数据元数据字典
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "DataMetaDTO", description = "数据元数据字典")
public class DataMetaDTO implements Serializable {

    @ApiModelProperty("字段名称")
    private String fieldName;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("默认值")
    private String defaultValue;

    @ApiModelProperty("说明")
    private String comment;

    @ApiModelProperty("是否主键")
    private Boolean primaryKey;

    @ApiModelProperty("是否外键")
    private Boolean foreignKey;

    @ApiModelProperty("外键说明")
    private String fKComment;

    @ApiModelProperty("是否分区字段")
    private Boolean partitionKey;

    @ApiModelProperty("是否唯一约束")
    private Boolean uniqueKey;

    @ApiModelProperty("是否允许空值")
    private Boolean nullable;
}